<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('开发项目列表')" />
</head>
<body class="white-bg">
    <div class="container-div">
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
    <th:block th:include="include :: footer"/>
    <script th:inline="javascript">
        var prefix = ctx + "gis/develop_user"
        var userId = [[${userId}]]
        var datas = [[${@dict.getType('projectIndustry_type')}]]
        $(function(){
            var options = {
                url: prefix + "/list/"+userId,
                columns: [
                    {
                        field: 'id',
                        title: '编号',
                        visible: false,
                    },
                    {
                        field: 'projectName',
                        title: '项目名称'
                    },
                    {
                        field: 'projectIndustry',
                        title: '项目行业类型',
                        align: "left",
                        formatter: function(value, item, index) {
                            return $.table.selectDictLabel(datas, item.projectIndustry);
                        }
                    },
                    {
                        field: 'secretKey',
                        title: '项目开发密钥'
                    },
                ]
            }
            $.table.init(options);
        })
    </script>
</body>
</html>